/*
 * Funny Language - a free style programming language.
 * Copyright (C) 2015 by fanguangping (fanguangping@163.com)
 * mapqueue.h
 */

#ifndef FUNNY_MAPQUEUE_H
#define FUNNY_MAPQUEUE_H

#include "string.h"
#include "queue.h"

typedef struct _KeyValueNode {
	String key;
	void *value;
} KeyValueNode;

KeyValueNode *alloc_map_node();

void add_key_value(Queue *queue, String key, void *value);
void *find_value(Queue *queue, String key);
Queue *find_values(Queue *queue, String key);

#endif //FUNNY_MAPQUEUE_H
